import Login from './views/Login/Login'
import Home from './views/Home'
import UpdatePassword from "./views/SystemSetting/UpdatePassword.vue"

// 运营看板
import OperationsPanel from './views/OperationsPanel/OperationsPanel'

// 保险统计
import policyInfo from './views/PolicyManagement/policyInfo'

// 消息推送
import messageTemplate from './views/MessagePushManagement/messageTemplate'
import messageInfo from './views/MessagePushManagement/messageInfo'
import messageDetail from './views/MessagePushManagement/messageDetail'
import editMessage from './views/MessagePushManagement/editMessage'

// 服务结算
import settlementDetail from './views/SettlementManagement/settlementDetail'


export default [
    { path: '/Login', name: 'login', component: Login }, 
    {
        path: '/', component: Home,
        children: [
            { path: '/OperationsPanel', name: 'OperationsPanel', component: OperationsPanel, meta: { title: '运营看板' } },
            { path: '/messageTemplate', name: 'messageTemplate', component: messageTemplate, meta: { title: '消息模板' } },
            { path: '/messageInfo', name: 'messageInfo', component: messageInfo, meta: { title: '消息列表' } },
            { path: '/messageDetail', name: 'messageDetail', component: messageDetail, meta: { title: '车辆列表详情' } },
            { path: '/editMessage', name: 'editMessage', component: editMessage, meta: { title: '编辑消息模板', isModal: true, modalWidth: '800px' } },
            { path: '/policyInfo', name: 'policyInfo', component: policyInfo, meta: { title: '保险列表', keepAlive: false } },
            { path: '/settlementDetail', name: 'settlementDetail', component: settlementDetail, meta: { title: '结算列表' } },
            { path: '/updatePassword', name: 'updatePassword', component: UpdatePassword, meta: { title: '修改密码', isModal: true, modalWidth: '500px' } },
        ]
    },
    {path: '*', redirect: '/'}
]
